#ifndef VIRTUALKEY_H
#define VIRTUALKEY_H

/*******************************************************************************
  EmiSnes - Super Nintendo Entertainment System (TM) emulator for Symbian.

  EmiSnes is port of Snes9x see Snes9x headers for specific licence.

  Many thanks to the whole Snes9x team for the great work.

  EmiSnes is licenced under GPLv2.

  Copyright 2011 - 2016 Andre Botelho (andrebotelhomail@gmail.com)

  EmiSnes homepage: http://libproductions.wordpress.com/emisnes

  Permission to use, copy, modify and distribute EmiSnes in both binary and
  source form, for non-commercial purposes, is hereby granted without fee,
  providing that this license information and copyright notice appear with
  all copies and any derived work.

  This software source is provided 'as-is', without any express or implied
  warranty. In no event shall the authors be held liable for any damages
  arising from the use of this software.

  EmiSnes is freeware for PERSONAL USE only. Commercial users should
  seek permission of the copyright holder first. Commercial use includes
  charging money for EmiSnes or software derived from EmiSnes.

  The copyright holder request that bug fixes and improvements to the code
  should be forwarded to them so everyone can benefit from the modifications
  in future versions.

  Super NES and Super Nintendo Entertainment System are trademarks of
  Nintendo Co., Limited and its subsidiary companies.
*******************************************************************************/

#include <Qt>
#include <QRect>
#include <QImage>
#include <QPixmap>

class VirtualKey{
public:
    QRect pRect;
    QRect lRect;
    Qt::Key key;
    int iPressed;
    QImage img;
    QImage pressimg;
    QString file;
    QPixmap pix;
    VirtualKey(QRect _rectl, Qt::Key _key, QRect _rectp);
    VirtualKey();
    ~VirtualKey();
    bool isOver( QPoint mpoint, bool landscape);
    QImage getImage();
};

#endif // VIRTUALKEY_H
